package com.qys.livesMall.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 平台广告管理
 * </p>
 *
 * @author wzy
 * @since 2023-07-05
 */
@Getter
@Setter
@TableName("h2_platform_advertisement")
@Schema(name = "H2PlatformAdvertisement", description = "平台广告管理")
public class H2PlatformAdvertisement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "广告名称")
    private String name;

    @Schema(description = "位置 0：首页 1：其他")
    private Integer position;

    @Schema(description = "状态 0：上线 1：下线 ")
    private Integer state;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "是否删除")
    @TableLogic
    private Byte deleted;
}
